<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>帕羽科技-在线简历</title>
	<link rel="stylesheet" href="__STATIC__/zhaopin/css/element.css">
	<link rel="stylesheet" href="__STATIC__/zhaopin/css/index.css">
	<script src="__STATIC__/zhaopin/js/vue.js"></script>
	<script src="__STATIC__/zhaopin/js/element.js"></script>
	<script src="__STATIC__/zhaopin/js/jquery.js"></script>
</head>
<style>
	.zt{
		font-size: 12px;
		margin-left: 2em;
	}
	.zt1{
		font-size: 14px;
	}
	.image-container {
            width: 200px; /* 容器宽度 */
            height: 200px; /* 容器高度 */
            overflow: hidden; /* 隐藏超出容器范围的部分 */
            position: relative; /* 设置相对定位 */
	}
	.image-container img{
		width: 100%; /* 图片宽度填充容器 */
		height: 100%; /* 图片高度填充容器 */
		object-fit: cover; /* 图片不变形并填充整个容器 */
	}
	.el-scrollbar .el-scrollbar__bar {
		opacity: 1 !important;	    
	}
	.el-textarea__inner{
  font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
}
input.el-input__inner {
    width: 200px;
}

.shuru.el-input {
    width: 200px;
}


.el-date-editor.el-input.el-input--prefix.el-input--suffix.el-date-editor--date {
    width: auto;
}
.el-date-editor.el-input.el-input--prefix.el-input--suffix.el-date-editor--month {
    width: 200px;
}

span.el-input__count{
    line-height: 12px!important;
}
textarea.el-textarea__inner {
    padding-bottom: 15px;
}
.el-textarea__inner::-webkit-scrollbar{
     width: 6px !important;
     height: 6px !important;
}
.el-textarea__inner::-webkit-scrollbar-thumb {
    border-radius: 3px !important;
	-moz-border-radius: 3px !important;
	-webkit-border-radius: 3px !important;
	background-color: #c3c3c3 !important;
}
.el-textarea__inner::-webkit-scrollbar-track {
    background-color: transparent !important;
}
body {
		background-color: #f4f4f4;
}
</style>
<body>
	<div id="app">
		<div class='title'>帕羽科技-在线简历</div>
		<div class='xuzhi'>填写须知</div>
		<div class='neirong'>
			<p class="zt1">(一)填写内容</p>
			<span class="zt">本部分包含个人情况、教育背景、工作经历、意向确认等内容</span>
		</div>
		<div class='neirong' style='border-bottom:1px dashed black;'>
			<p class="zt1">(二)注意事项</p>
			<span class="zt">1、帕羽科技不向任何第三方及公司内部无关人员泄露候选人的个人信息，所有线上资料将严格保管于平台数据库，仅为公司招聘和内部管理使用。</span>
			<span class="zt">2、候选人应保证求职过程中填写信息均真实完整。</span>
			<span class="zt">3、提交完成后即视作您对招聘岗位有投递意向，我们将尽快在两个工作日内与您联系，进行后续的沟通或笔面试安排。</span>
		</div>
		<div class='biaodan'>
			<el-form :label-width='shouji?"100px":"190px"'>
				<el-form-item label='您应聘的岗位'>
					<el-select v-model="glx" @change="jobChange1" placeholder='请选择应聘的部门' >
						<el-option v-for='item in gwlx' :label='item.name'  :value='item.value'></el-option>
					</el-select>
					<el-select v-model="job" @change="jobChange" placeholder='请选择应聘的岗位' >
						<el-option v-for='item in gangwei' :label='item.name'  :value='item.value'></el-option>
					</el-select>
				</el-form-item>
				<el-form-item label='招聘人'>
					<el-select v-model="hr" @change="hrChange" placeholder='请选择招聘人'>
						<el-option v-for='item in zhaopinren' :label='item.name' :value="item.value"></el-option>
					</el-select>
				</el-form-item>
				<el-form-item label='招聘信息来源'>
					<el-select v-model="hr_from" @change="hrFromChange" placeholder='请选择招聘信息来源'>
						<el-option v-for='item in laiyuan' :label='item.name' :value='item.value'></el-option>
					</el-select>
				</el-form-item>
				<el-form-item label='应聘渠道' style='border-bottom:1px dashed black'>
					<el-select v-model="pin_from" @change="pinChange" placeholder='请选择应聘渠道'>
						<el-option v-for='item in qudao' :label='item.name' :value='item.value'></el-option>
					</el-select>
				</el-form-item>
				<div class='xinxi'>应聘人基础信息</div>
				<div v-for='(item,index) in list'>
					<div v-if='item.type!="jingli"&&item.type!="duozi"'>
						<p v-if='item.name1 && item.name1 !="教育经历1"' >{{item.name1}}</p>
						<div class='xinxi' v-if='item.name1 && item.name1 =="教育经历1"'>{{item.name1}}</div>
						<div v-if='item.heig' style='height:10px;'></div>
						<el-form-item :label='item.name'>
							<el-input :placeholder='item.placeholder' v-if='item.type=="input" ' v-model='item.value' class='shuru' :maxlength = 'item.cs'></el-input>
							<b v-if='item.type=="input" && item.field == "high"'>CM</b>
							<b v-if='item.type=="input" && item.field == "weight"'>KG</b>

							<el-select :placeholder='item.placeholder' v-if='item.type=="select"' v-model='item.value'>
								<el-option v-for='ite in item.list' :label='ite.name' :value="ite.value"></el-option>
							</el-select>
							<div v-if='item.type=="time"'>
								<el-select  v-model='item.value'>
									<el-option v-for='it in item.list'  :value="it.value"></el-option>
								</el-select>
								<span>-</span>
								<el-date-picker type='date' placeholder='请选择日期' value-format="yyyy-MM-dd" v-model='item.date'></el-date-picker>
								<span>-</span>
								<!-- <el-time-picker placeholder='请选择时间' format = 'HH' value-format = 'HH' v-model='item.date1'></el-time-picker> -->
								<el-time-select placeholder="时间轮盘" v-model="item.date1" :picker-options="{start: '00:00',step: '01:00',end: '23:00'}"></el-time-select>
							</div>
							<div v-if='item.type=="time1"'>
								<el-date-picker type='date' placeholder='请选择到岗时间' value-format="yyyy-MM-dd"  v-model='item.date'></el-date-picker>
							</div>
							<div v-if='item.type=="zhaopian"'>
								<p>选择文件(不超过4m)</p>
								<div class='zhaopian image-container'>
									<input type='file' id="image" @change="uploadf"   accept="image/*">
									<img id="imagePreview" src="__STATIC__/zhaopin/img/shangchuan.png">
									
								</div>
							</div>
						</el-form-item>
<div v-if='item.margintop' style='height:10px;border-bottom:1px dashed black;margin-bottom:20px;'></div>
					</div>
					<div v-if='item.type=="jingli"' style='border-bottom:1px dashed black;margin-bottom:10px;'>
						<div v-for='(it,inde) in item.list'>
							<div class='xinxi'>
								<div style='float:left;' v-if = 'it.name == "教育经历"'>{{it.name}}<span v-if='inde>0'>{{inde+2}}</span></div>
								<div style='float:left;' v-if = 'it.name != "教育经历"'>{{it.name}}<span v-if='inde>0'>{{inde}}</span></div>
								<div v-if='item.daibiaoxing'>
									<img src='__STATIC__/zhaopin/img/tianjia.png' v-if='inde==item.list.length-1' @click='add(index)'>
									<img src='__STATIC__/zhaopin/img/shanchu.png' v-if='inde>0' @click='shanchu(index,inde)'>
								</div>
								<div v-else>
									<img src='__STATIC__/zhaopin/img/tianjia.png' v-if='inde==item.list.length-1' @click='add1(index)'>
									<img src='__STATIC__/zhaopin/img/shanchu.png' v-if='inde>1' @click='shanchu(index,inde)'>
								</div>
							</div>
							<div class='wenzi'>{{it.name1}}</div>
							<el-form-item v-for='ite in it.list' :label='ite.name'>
								<el-input :placeholder='ite.placeholder' v-if='ite.type=="input" ' v-model='ite.value' class='shuru' :maxlength = 'ite.cs' ></el-input>
								<el-input :placeholder='ite.placeholder' v-if='ite.type=="textarea"' type='textarea' v-model='ite.value' style='width:200px;' class='shuru' :maxlength = 'ite.cs' show-word-limit></el-input>
								<el-select :placeholder='ite.placeholder' v-if='ite.type=="select"' v-model='ite.value'>
									<el-option v-for='it in ite.list' :label='it.name' :value="it.value"></el-option>
								</el-select>
								<div v-if='ite.type=="time"'>
									<el-date-picker type='month' placeholder='请选择起始年月'  value-format="yyyy-MM"  v-model='ite.date'></el-date-picker>
									<span>-</span>
									<el-date-picker type='month' placeholder='请选择终止年月' value-format="yyyy-MM"  v-model='ite.date1'></el-date-picker>
								</div>
							</el-form-item>
						</div>
					</div>
					<div v-if='item.type=="duozi"'>
						<div class='duozi'>
							<p>公司各岗位项目将对员工投入巨大培养成本，包含员工培训、高管带教、运营款式下单决策等(投入在百万以上)；因此要求投递本项目的候选人对自己的职业发展有清晰的规划，愿意在本行业、本公司、本岗位有至少学习3年以上的计划</p>
							<p>如您在入职后三年内有考公、考编和考研升学行为，将被视作项目签约的重大误解，公司将以最低工资标准支付您的薪酬，并要求您退还前期发放的绩效奖金和补贴。<span>本着相互选择，携手成长的理念，请您慎重选择。如您不接受，我们真诚的祝福你达成目标，下一阶段更好的相遇</span></p>
							<el-form-item>
								<el-select v-model='item.value' placeholder='请选择'>
									<el-option v-for='ite in item.list' :label='ite.name' :value='ite.value'></el-option>
								</el-select>
							</el-form-item>
						</div>
					</div>
				</div>
			</el-form>
			<el-button type='success' @click="sub" style='width:200px;margin:20px auto;display:block;'>提交</el-button>
		</div>
	</div>
	
	<div style="display: flex;justify-content: center;align-items: center;">
		<a href="https://beian.miit.gov.cn/" target="_blank">赣ICP备2022000004号-1</a>
	</div>
	
	<script>
		var shouji=false
		if(document.body.clientWidth>720){
			shouji=false
		}else{
			shouji=true
		}
		new Vue({
		    el: '#app',
		    data: function() {
				return {
					glx: '',
					job:'',
					hr:'',
					hr_from:'',
					pin_from:'',
					photo:'',
					// 运营部 人力行政部 总经办 财务部 客服部 仓储部 采购部 分销部 设计部 数据中台
					gwlx:[
						{
							name:'运营部',
							value:1
						},
						{
							name:'人力行政部',
							value:2
						},
						{
							name:'总经办',
							value:3
						},
						{
							name:'财务部',
							value:4
						},
						{
							name:'客服部',
							value:5
						},
						{
							name:'仓储部',
							value:6
						},
						{
							name:'采购部',
							value:7
						},
						{
							name:'分销部',
							value:8
						},
						{
							name:'设计部',
							value:9
						},
						{
							name:'数据中台',
							value:10
						},
						{
							name:'开发部',
							value:11
						}
					],
					gangwei:[
						
					],
					zhaopinren:[
						{
							name:'曹操',
							value:2
						},
						{
						    name:'大乔',
							value:5
						},
						{
						    name:'刘备',
							value:6
						},
						{
							name:'小乔',
							value:7
						},
						{
							name:'伯乐',
							value:1
						},
						{
							name:'孙尚香',
							value:8
						},
						{
							name:'陈亦新',
							value:9
						},
						{
							name:'孙权',
							value:11
						},
						{
							name: '朋友推荐',
							value: 10
						}
					],
					laiyuan:[
						{
							name:'BOSS直聘',
							value:1
						},
						{
							name:'智联',
							value:2
						},
						{
							name:'猎聘',
							value:3
						},
						{
							name:'内推',
							value:4
						},
						{
							name:'猎头',
							value:5
						},
						{
							name:'现场招聘',
							value:6
						},
						{
							name:'其他',
							value:7
						}
					],
					qudao:[
						{
							name:'社招',
							value:1
						},
						{
							name:'校招',
							value:2
						}
					],
					list:[
						{
							name:'您的姓名',
							placeholder:'请输入您的姓名',
							type:'input',
							field:'name',
							cs: 10,
							value:''
						},
						{
							name:'身份证号',
							placeholder:'请输入您的身份证号',
							type:'input',
							field:'id_card',
							cs: 18,
							value:''
						},
						{
							name:'性别',
							placeholder:'请选择您的性别',
							type:'select',
							field:'sex',
							list:[
								{
									name:'男',
									value:1
								},
								{
									name:'女',
									value:2
								}
							],
							value:''
						},
						{
							name:'血型',
							placeholder:'请输入您的血型',
							type:'select',
							field:'blood',
							// A、B、AB、O型、不详
							list:[
								{
									name:'A型',
									value:'A型'
								},
								{
									name:'B型',
									value:'B型'
								},
								{
									name:'AB型',
									value:'AB型'
								},
								{
									name:'O型',
									value:'O型'
								},
								{
									name:'不详',
									value:'不详'
								}
							],
							value:''
						},
						{
							name:'政治面貌',
							placeholder:'请输入您的政治面貌',
							type:'select',
							field:'political',
							//中共党员、中共预备党员、共青团员、群众、其他
							list:[
								{
									name:'中共党员',
									value:'中共党员'
								},
								{
									name:'中共预备党员',
									value:'中共预备党员'
								},
								{
									name:'共青团员',
									value:'共青团员'
								},
								{
									name:'群众',
									value:'群众'
								},
								{
									name:'其他',
									value:'其他'
								}
							],
							value:''
						},
						{
							name:'联系电话',
							placeholder:'请输入联系电话',
							type:'input',
							field:'phone',
							cs: 11,
							value:''
						},
						{
							name:'电子邮箱',
							placeholder:'请输入电子邮箱',
							type:'input',
							field:'email',
							cs: 50,
							value:''
						},
						{
							name:'生日',
							type:'time',
							field:'birthday',
							date:'2001-01-01',
							date1:'',
							list:[
								{
									name:'公历',
									value:'公历'
								},
								{
									name:'农历',
									value:'农历'
								}
							],
							value:'公历'
						},
						{
							name:'身高',
							placeholder:'',
							type:'input',
							field:'high',
							cs: 3,
							value:''
						},
						{
							name:'体重',
							placeholder:'',
							value:'',
							field:'weight',
							cs: 3,
							type:'input'
						},
						{
							name:'籍贯',
							placeholder:'xx(省)xx(市),如湖北武汉',
							type:'input',
							field:'local',
							cs:10,
							value:''
						},
						{
							name:'户籍地址',
							placeholder:'请输入户籍地址',
							type:'input',
							field:'address',
							cs:23,
							value:''
						},
						{
							name:'户籍性质',
							placeholder:'请输入户籍性质',
							type:'select',
							field:'address_type',
							//城镇、农村
							list:[
								{
									name:'城镇',
									value: '城镇'
								},
								{
									name:'农村',
									value:'农村'
								}
							],
							value:''
						},
						{
							name:'民族',
							placeholder:'请输入您的民族',
							type:'input',
							field:'nation',
							cs:9,
							value:''
						},
						{
							name:'婚否',
							placeholder:'请选择婚否',
							field:'is_married',
							list:[
								{
									name:'未婚',
									value:1
								},
								{
									name:'已婚',
									value:2
								}
							],
							type:'select',
							value:''
						},
						{
							name1:'教育经历1',
							name:'文理分科',
							placeholder:'请输入文理分科',
							type:'select',
							field:'wlfk',
							list:[
								{
									name:'文科',
									value:'文科'
								},
								{
									name:'理科',
									value:'理科'
								}
							],
							value:''
						},
						{
							name:'总分/省排名',
							placeholder:'请输入总分或省排名',
							type:'input',
							cs:13,
							field:'zf_pm',
							value:''
						},
						{
							name:'高考数学得分',
							placeholder:'请输入高考数学得分',
							type:'input',
							cs:6,
							field:'math_score',
							value:''
						},
						{
							name:'高考语文得分',
							placeholder:'请输入高考语文得分',
							type:'input',
							cs:6,
							field:'yw_score',
							value:''
						},
						{
							name:'高考英语得分',
							placeholder:'请输入高考英语得分',
							type:'input',
							cs:6,
							field:'english_score',
							value:''
						},
						{
							name:'高考文/理综得分',
							placeholder:'请输入高考文/理综得分',
							type:'input',
							cs:6,
							field:'zonghe_score',
							value:''
						},
						{
							type:'jingli',
							daibiaoxing:1,
							list:[
								{
									name:'教育经历2',
									name1:'填写第一统招学历',
									list:[
										{
											name:'学历',
											type:'select',
											field:'edu',
											list:[
												{
													name:'硕士',
													value:'硕士'
												},
												{
													name:'本科',
													value:'本科'
												},
												{
													name:'大专',
													value:'大专'
												},
												{
													name:'中专',
													value:'中专'
												}
											],
											value:''
										},
										{
											name:'起止年月',
											type:'time',
											placeholder:'请填写起止年月',
											field:'start',
											value:''
										},
										{
											name:'学校名称',
											type:'input',
											placeholder:'请填写学校名称',
											field:'college_name',
											cs:12,
											value:''
										},
										{
											name:'所学专业',
											type:'input',
											placeholder:'请填写所学专业',
											cs:18,
											field:'major',
											value:''
										},
										{
											name:'是否毕业',
											placeholder:'请选择是否毕业',
											field:'is_finish',
											list:[
												{
													name:'是',
													value:1

												},
												{
													name:'否',
													value:2
												}
											],
											type:'select',
											value:''
										}
									]
								}
							]
						},
						{
							name:'全系成绩排名',
							type:'input',
							placeholder:'请填写全系成绩排名',
							field:'sort',
							cs:10,
							value:''
						},
						{
							name1:'请问您是否有考公、考编和考研升学计划',
							placeholder:'请选择',
							field:'plan',
							list:[
								{
									name:'有',
									value:1
								},
								{
									name:'无',
									value:2
								}
							],
							type:'select',
							value:''
						},
						{
							type:'duozi',
							list:[
								{
									name:'我接受',
									value:1
								},
								{
									name:'我不接受',
									value:2
								}
							],
							field:'is_accept',
							value:''
						},
						{
							type:'jingli',
							list:[
								{
									name:'工作、实习经历(自选代表性)',
									list:[
										{
											type:'time',
											name:'起止年月',
											field:'start',
											value:''
										},
										{
											name:'工作单位',
											type:'input',
											field:'company',
											placeholder:'请输入工作单位',
											cs:26,
											value:''
										},
										{
											name:'职务',
											type:'input',
											field:'job',
											cs:12,
											placeholder:'请输入职务',
											value:''
										},
										{
											name:'薪资',
											type:'input',
											field:'salary',
											cs:12,
											placeholder:'请输入薪资',
											value:''
										},
										{
											name:'离职原因',
											type:'textarea',
											field:'dimission_reason',
											cs:24,
											placeholder:'请输入离职原因',
											value:''
										},
										{
											name:'证明人',
											type:'input',
											field:'zmr',
											cs:6,
											placeholder:'请输入证明人',
											value:''
										},
										{
											name:'证明人联系方式',
											type:'input',
											field:'zmr_phone',
											cs:11,
											placeholder:'请输入证明人联系方式',
											value:''
										},
										{
											name:'企业人数规模',
											type:'input',
											field:'company_people_num',
											cs:10,
											placeholder:'请输入企业人数规模',
											value:''
										},
										{
											name:'企业年营业额',
											type:'input',
											field:'turnover',
											cs:12,
											placeholder:'请输入企业年营业额',
											value:''
										},
										{
											name:'汇报对象',
											type:'input',
											field:'report',
											cs:6,
											placeholder:'请输入汇报对象',
											value:''
										},
										{
											name:'带团队人数',
											type:'input',
											field:'team_people_num',
											cs:10,
											placeholder:'请输入带团队人数',
											value:''
										},
										{
											name:'团队/个人业绩',
											type:'textarea',
											field:'person_get',
											cs:28,
											placeholder:'简单说明，尽量数字化',
											value:''
										}
									]
								},
								{
									name:'其他工作实习/经历',
									name1:'可补充,非必选',
									list:[
										{
											type:'time',
											name:'起止年月',
											field:'start',
											value:''
										},
										{
											name:'工作单位',
											type:'input',
											field:'company',
											cs:26,
											placeholder:'请输入工作单位',
											value:''
										},
										{
											name:'职务',
											type:'input',
											field:'job',
											cs:12,
											placeholder:'请输入职务',
											value:''
										},
										{
											name:'薪资',
											type:'input',
											field:'salary',
											cs:12,
											placeholder:'请输入薪资',
											value:''
										},
										{
											name:'离职原因',
											type:'textarea',
											cs:24,
											field:'dimission_reason',
											placeholder:'请输入离职原因',
											value:''
										},
										{
											name:'证明人',
											type:'input',
											field:'zmr',
											placeholder:'请输入证明人',
											cs:6,
											value:''
										},
										{
											name:'证明人联系方式',
											type:'input',
											field:'zmr_phone',
											cs:11,
											placeholder:'请输入证明人联系方式',
											value:''
										}
									]
								}
							]
						},
						{
							name:'期望薪资',
							type:'input',
							field:'salary_1',
							placeholder:'请输入期望薪资(试用期)',
							value:'',
							cs:8,
							heig:10
						},
						{
							name:'期望薪资',
							type:'input',
							field:'salary_2',
							placeholder:'请输入期望薪资(转正后)',
							value:'',
							cs:8,
							margintop:20
						},
						{
							name:'确认到岗时间',
							type:'time1',
							field:'arrival_time',
							value:''
						},
						{
							name:'请提供一张您的证件照或正脸清晰的照片',
							type:'zhaopian',
							field:'life_photo',
							value:''
						}
					],
					shouji:shouji
				}
		    },
			methods:{
				sub(){
					let list = this.list;
						let glx = this.glx;
						let job = this.job;
						let hr = this.hr;
						let hr_from = this.hr_from;
						let pin_from = this.pin_from;
						let photo = this.photo;
					if(glx == ''){
							this.$message({
								message: '请输入应聘部门',
								type: 'warning'
							});
							return;
					}	
					if(job == '') {
						this.$message({
							message: '请输入应聘岗位',
							type: 'warning'
						});
						return;
					}
					if(hr == '') {
						this.$message({
							message: '请输入招聘人',
							type: 'warning'
						});
						return;
					}
					if(hr_from == '') {
						this.$message({
							message: '请输入招聘信息来源',
							type: 'warning'
						});
						return;
					}
					if(pin_from == '') {
						this.$message({
							message: '请输入应聘渠道',
							type: 'warning'
						});
						return;
					}
					for (let i = 0; i < list.length; i++) {
						if(list[i].type != 'jingli' && list[i].type != 'time' && list[i].type != 'time1' && list[i].type != 'zhaopian'){
							if(list[i].value == '') {
								if(list[i].field == 'plan' ) {
									$nameError = '是否有考公、考编和考研升学计划字段不能为空';
								}else if (list[i].field == 'is_accept') {
									$nameError = '考公、考编和考研升学行为视为项目签约的重大误解是否接受字段不能为空';
								} else {
									$nameError = list[i].name + '字段不能为空';
								}
								this.$message({
									message: $nameError,
									type: 'warning'
								});
								return;
							}
						}
						if(list[i].type == 'time'){
							if(list[i].date == '' || list[i].date === null ||list[i].date ==undefined || list[i].date1 == ''|| list[i].date1 === null ||list[i].date1 ==undefined) {
								this.$message({
									message: list[i].name + '字段不能为空',
									type: 'warning'
								});
								return;
							}
						}
						if(list[i].type == 'time1'){
							if(list[i].date == '' || list[i].date === null || list[i].date ==undefined) {
								this.$message({
									message: list[i].name + '字段不能为空',
									type: 'warning'
								});
								return;
							}
						}
						if(list[i].type == 'jingli'){
							var lc = list[i].list;
							for (let ii = 0; ii < lc.length; ii++) {
								var ld = lc[ii].list
								//不等于其他工作实习/经历
								if(lc[ii].name != '其他工作实习/经历') {
									for (let iii = 0; iii < ld.length; iii++) {
										if(ld[iii].type == 'time'){
											if(ld[iii].date == '' || ld[iii].date === null || ld[iii].date ==undefined ||ld[iii].date1 == '' || ld[iii].date1 === null || ld[iii].date1 ==undefined) {
												this.$message({
													message: lc[ii].name + ld[iii].name + '字段不能为空',
													type: 'warning'
												});
												return;
											}

										}else{
												if(ld[iii].value == '') {
													this.$message({
														message: ld[iii].name + '字段不能为空',
														type: 'warning'
													});
													return;
												}
										}
									}
								} 

							}
						}
					}
					if(photo == ''){
					    this.$message({
							message: '请上传生活照片',
							type: 'warning'
					    });
						return;
					}
					let l = list[21].list;
				
					let l20 = list[25].list;
					
					var that = this
						$.ajax({
						async: true,
						url: '/Zhaopin/save',
						type: 'post',
						data : { list : list ,glx:glx,job:job,hr:hr,hr_from:hr_from,pin_from,photo:photo},
						dataType: 'json',
						timeout: 30000,
						success: function(res){
							if(res.code == 1){
								that.$message({
									message: '提交成功',
									type: 'warning'
								});
							}else{
								that.$message({
									message: res.msg,
									type: 'warning'
								});
							}
						},
						error: function(res){

						},


					})
				},
				uploadf(e){
					var that = this;
					let formData = new FormData();
					var imagePreview = document.getElementById('imagePreview');
					//获取上传图片类型
					// var filePath = document.getElementById("image").value;
					// var fileTypes = [".jpg", ".png", ".jpeg", ".PNG",".JPG",".JPEG"];
					// if(filePath){
					// 	var isNext = false;
					// 	var fileEnd = filePath.substring(filePath.indexOf("."));//截取文件名的后缀
					// 	for (var i = 0; i < fileTypes.length; i++) {
					// 		if (fileTypes[i] == fileEnd) {
					// 			isNext = true;
					// 			break;
					// 		}
					// 	}
					// 	if (!isNext){
					// 		that.$message({
					// 				message: '不接受此文件类型,请上传.jpg|.png|.jpeg类型的图片',
					// 				type: 'success'
					// 		});
					// 		return false;
					// 	}
					// }else {
					// 	return false;
					// }
					formData.append("image" , $("#image")[0].files[0]);
					$.ajax({
						async: true,
						url: '/Zhaopin/upload',
						type: 'post',
						data: formData,
						processData: false,
						contentType: false,
						dataType: 'json',
						timeout: 30000,
						success: function(res){
							that.photo = res.data.url;
							imagePreview.src = res.data.url;
							that.$message({
									message: '照片上传成功',
									type: 'success'
								});
						},
						error: function(res){

						}})
				},
				jobChange1(e) {
					this.gangwei = [];
					this.glx = e;
					this.job = '';
					//运营部 人力行政部 总经办 财务部 客服部 仓储部 采购部 分销部 设计部 数据中台
					if(e == 1) {
						// 电商运营、选款运营、抖音短视频运营、运营总监
						this.gangwei = [
							{
								name:'电商运营',
								value:1
							},
							{
							    name:'选款运营',
								value:2
							},
							{
								name:'抖音短视频运营',
								value:3
							},
							{
								name:'运营总监',
								value:4
							},
							{
							    name:'主播',
								value:43
							},
							{
							    name:'其他',
								value:30
							}
						]
					} else if(e == 2) {
						//人事总监、行政经理、HR-招聘、HR-绩效
					    this.gangwei = [
							{
								name:'人事总监',
								value:5
							},
							{
								name:'行政经理',
								value:6
							},
							{
								name:'HR-招聘',
								value:7
							},
							{
								name:'HR-绩效',
								value:8
							},
							{
							    name:'行政专员',
								value:31
							},
							{
								name:'其他',
								value:32
							}
						]
					} else if(e == 3) {
						//董事长助理、总经理助理
						this.gangwei = [
							{
								name:'董事长助理',
								value:9,
							},
							{
								name:'总经理助理',
								value:10
							},
							{
								name:'其他',
								value:33
							}
						]
					} else if(e == 4) {
						//财务专员、财务经理、财务总监
						this.gangwei = [
							{
								name:'财务专员',
								value:11
							},
							{
								name:'财务经理',
								value:12
							},
							{
							    name:'财务总监',
								value:13
							},
							{
								name:'其他',
								value:34
							}
						]
					}else if(e == 5) {
						//客服经理、客服主管、电商客服、微信客服
						this.gangwei = [
							{
								name:'客服经理',
								value:14
							},
							{
								name:'客服主管',
								value:15
							},
							{
								name:'电商客服',
								value:16
							},
							{
								name:'微信客服',
								value:17
							},
							{
								name:'其他',
								value:35
							}
						]
					}else if(e == 6) {
						//供应链专员、仓储经理
					    this.gangwei = [
							{
								name:'供应链专员',
								value:18
							},
							{
								name:'仓储经理',
								value:19
							},
							{
								name:'其他',
								value:36
							}
						]
					}else if(e == 7) {
					    //采购专员、采购经理
						this.gangwei = [
							{
								name:'采购专员',
								value:20
							},
							{
								name:'采购经理',
								value:21
							},
							{
								name:'其他',
								value:37
							}
						]
					}else if(e == 8) {
					    //分销专员、分销经理、招商经理
						this.gangwei = [
							{
								name:'分销专员',
								value:22
							},
							{
								name:'分销经理',
								value:23
							},
							{
								name:'招商经理',
								value:24
							},
							{
								name:'其他',
								value:38
							}
						]
					}else if(e == 9) {
					    //设计总监、摄影师
						this.gangwei = [
							{
								name:'设计总监',
								value:25
							},
							{
								name:'摄影师',
								value:26
							},
							{
								name:'设计美工',
								value:41
							},
							{
								name:'其他',
								value:39
							}
						]
					} else if(e == 10) {
					    //数据专员、GPT应用工程师、Python开发工程师
						this.gangwei = [
							{
								name:'数据专员',
								value:27
							},
							{
								name:'数据经理',
								value:45
							},
							
							{
								name:'其他',
								value:40
							}
							
						]
					} else if (e == 11) {
						this.gangwei = [
							{
								name:'开发经理',
								value:42
							},
							{
								name:'开发工程师',
								value:29
							},
							{
								name: '测试工程师',
								value: 44
							},
							{
								name:'GPT应用工程师',
								value:28
							},
							{
								name:'其他',
								value:46
							}	
						]
					}
				},
				jobChange(e){
					this.job=e;
				},
				hrChange(e){
					this.hr=e;
				},
				hrFromChange(e){
					this.hr_from=e;
				},
				pinChange(e){
					this.pin_from=e;
				},

				add(index){
					var a={
						name:'教育经历',
						name1:'填写其他统招学历/研究生学历',
						type:'jingli',
						list:[
							{
								name:'学历',
								type:'select',
								field:'edu',
								list:[
									{
										name:'硕士',
										value:'硕士'
									},
									{
										name:'本科',
										value:'本科'
									},
									{
										name:'大专',
										value:'大专'
									},
									{
										name:'中专',
										value:'中专'
									}
								],
								value:''
							},
							{
								name:'起止年月',
								type:'time',
								placeholder:'请填写起止年月',
								field:'start',
								value:''
							},
							{
								name:'学校名称',
								type:'input',
								placeholder:'请填写学校名称',
								cs:12,
								field:'college_name',
								value:''
							},
							{
								name:'所学专业',
								type:'input',
								placeholder:'请填写所学专业',
								cs:18,
								field:'major',
								value:''
							},
							{
								name:'是否毕业',
								placeholder:'请选择是否毕业',
								field:'is_finish',
								list:[
									{
										name:'是',
										value:1

									},
									{
										name:'否',
										value:2
									}
								],
								type:'select',
								value:''
							}
						]
					}
					this.list[index].list.push(a)
				},
				shanchu(index,inde){
					this.list[index].list.splice(inde,1)
				},
				add1(index){
					var a={
						name:'其他工作实习/经历',
						list:[
							{
								type:'time',
								name:'起止年月',
								field:'start',
								value:''
							},
							{
								name:'工作单位',
								type:'input',
								field:'company',
								cs:26,
								placeholder:'请输入工作单位',
								value:''
							},
							{
								name:'职务',
								type:'input',
								field:'job',
								cs:12,
								placeholder:'请输入职务',
								value:''
							},
							{
								name:'薪资',
								type:'input',
								field:'salary',
								cs:12,
								placeholder:'请输入薪资',
								value:''
							},
							{
								name:'离职原因',
								type:'textarea',
								field:'dimission_reason',
								cs:24,
								placeholder:'请输入离职原因',
								value:''
							},
							{
								name:'证明人',
								type:'input',
								field:'zmr',
								cs:6,
								placeholder:'请输入证明人',
								value:''
							},
							{
								name:'证明人联系方式',
								type:'input',
								field:'zmr_phone',
								cs:11,
								placeholder:'请输入证明人联系方式',
								value:''
							}
						]
					}
					this.list[index].list.push(a)
				}
			}
		})
	</script>
</body>
</html>